package top.superflow.core.utils

import top.superflow.flow.config.Identifiable

object IdentifiableUtils {

  def copy(source : Identifiable, target : Identifiable): Unit ={
    if(source == null || target == null){
      return
    }

    target.setTags(source.getTags)
    target.setAlias(source.getAlias)
    target.setDescription(source.getDescription)
    target.setGroup(source.getGroup)
    target.setKey(source.getKey)
    target.mergeMetadata(source.getMetadata)
  }
}
